package base;

import static java.util.Objects.hash;

/**
 * \* User: Administrator
 * <p>
 * \* Date: 2020/9/17
 * <p>
 * \* Time: 13:51
 * <p>
 * \* Description:
 * \
 */
public class HashDemo {
    public static void main(String[] args) {
        String s = "abc";
        int i = s.hashCode();
        System.out.println(i);

        Object o = new Object();
        int i1 = o.hashCode();
        System.out.println(i1);

        int i2 = hash(s) % 3;
        System.out.println(i2);
    }
}
